﻿/// Author:					Le Xuan Manh
/// Created:				2011-10-06
/// Last Modified:			2011-10-06


using System;
using System.Configuration.Provider;

namespace ITC.Business.WebHelpers.UserRegisteredHandlers
{
    /// <summary>
    ///  
    /// </summary>
    public class UserRegisteredHandlerProviderCollection : ProviderCollection
    {
        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("The provider parameter cannot be null.");

            if (!(provider is UserRegisteredHandlerProvider))
                throw new ArgumentException("The provider parameter must be of type UserRegisteredHandlerProvider.");

            base.Add(provider);
        }

        new public UserRegisteredHandlerProvider this[string name]
        {
            get { return (UserRegisteredHandlerProvider)base[name]; }
        }

        public void CopyTo(UserRegisteredHandlerProvider[] array, int index)
        {
            base.CopyTo(array, index);
        }

    }
}
